//
//  SMColumnModal.swift
//  SmartMachine
//
//  Created by Sherman's iMac on 2019/11/6.
//  Copyright © 2019 Smart. All rights reserved.
//

import Cocoa

class SMColumnModal: NSObject {
    
    var name : String?
    var type : Int?
    
    init(dict : NSDictionary ) {
        
        if (dict.object(forKey: "name") != nil) {
           self.name = dict.object(forKey: "name") as? String
        }
        if (dict.object(forKey: "type") != nil) {
           self.type = dict.object(forKey: "type") as? Int
        }
    }
}

class SMTreeModal: NSObject {
    
    let _name : String?
    var name : String?
    var childNodes : NSMutableArray?
    init(name : String?) {
        _name = name
    }
    
}
